package pers.cj.pdos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.BorrowInBackGoods;
import pers.cj.pdos.entity.MoneyWater;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenj
 * @since 2020-03-25
 */
public interface IMoneyWaterService extends IService<MoneyWater> {

    List<Map> listVo(String companyId,
                     Integer page,
                     Integer limit,
                     Boolean close,
                     String search,
                     String no,
                     String unitName,
                     String userStoreId,
                     String userId,
                     String settAccountId,
                     Integer type,
                     Integer typeProject,
                     Date date1,
                     Date date2,
                     String storeId);

    long count(String companyId,
               Boolean close,
               String search,
               String no,
               String unitName,
               String userStoreId,
               String userId,
               String settAccountId,
               Integer type,
               Integer typeProject,
               Date date1,
               Date date2,
               String storeId);

    BigDecimal getTotalAmount(String companyId,
                              String storeId,
                              String userId,
                              Date date1,
                              Date date2);

    List<Map> listTotalGroupByDate(String companyId,
                                   String storeId,
                                   String userId,
                                   Date date1,
                                   Date date2);
}
